package com.yqw.demo.boot.config;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(AcmeProperties.class)
public class MyConfiguration {
	
	private AcmeProperties acmeProperties;
	
	public MyConfiguration(AcmeProperties acmeProperties) {
		this.setAcmeProperties(acmeProperties);
	}

	public AcmeProperties getAcmeProperties() {
		return acmeProperties;
	}

	public void setAcmeProperties(AcmeProperties acmeProperties) {
		this.acmeProperties = acmeProperties;
	}
}
